using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using Rotempco.Core.Web.CRUD.Objects;
using Rotempco.Core.Web.CRUD.Interfaces;

namespace Rotempco.Core.Web.CRUD.ACRUD
{
    public abstract class ACRUDDefaultMultiColumn : AAdminMaster 
    {
        protected override void OnLoad(EventArgs e)
        {
            if (!IsPostBack)
                BindControls();

            base.OnLoad(e);
        }

        protected void BindControls()
        {
            PageListMultiColumnContainer pageListMultiColumnContainer = GetPageListContainer();
            (this.Master as ICRUDDefaultMultiColumn).SetDefaultPageContainer(pageListMultiColumnContainer);
        }



        public abstract PageListMultiColumnContainer GetPageListContainer();
    }
}